package com.example.administrator.hqq.utils;

import com.qiniu.android.common.FixedZone;
import com.qiniu.android.storage.Configuration;
import com.qiniu.android.storage.UploadManager;

/**
 * @name: HQQ
 * @describe:
 * @author: 康海涛 QQ2541849981
 * @time: 2018/11/1 16:08
 * @remark:
 */
public class UploadManagerUtils {
    private String token = "ODiiBhlSmrpiua7rZ4l8cx8tuOjsAQ2mdtuYKtUV:4WhINFeqbI8wYfKixyRJMrXXAv8=:eyJzY29wZSI6ImhxcS1waWN0dXJlOnRlc3RfdG9rZW5fMS5wbmciLCJkZWFkbGluZSI6MTU1MTA1NjcxNn0=";
    private static Configuration config = new Configuration.Builder()
            .chunkSize(512 * 1024)
            .putThreshhold(1024 * 1024)
            .connectTimeout(10)
            .useHttps(true)
            .responseTimeout(60)
            .zone(FixedZone.zone1)
            .build();
    private static UploadManager uploadManager = new UploadManager(config);

    public static UploadManager getUploadManager() {
        return uploadManager;
    }
}
